/* ========================================
   日历rili平台适配 - 暖光日记风格 (完整版)
   全面重构：统一配色、紧凑布局、移动优先
======================================== */

/* --- 容器与全局 --- */
.temple-ui {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', Roboto, sans-serif;
    background-color: #fdfbf7;
    background-image:
        linear-gradient(135deg, rgba(255, 222, 173, 0.08) 25%, transparent 25%),
        linear-gradient(225deg, rgba(255, 222, 173, 0.08) 25%, transparent 25%),
        linear-gradient(315deg, rgba(255, 222, 173, 0.08) 25%, transparent 25%),
        linear-gradient(45deg, rgba(255, 222, 173, 0.08) 25%, transparent 25%);
    background-size: 40px 40px;
    color: #3d3029;
    border: 2px solid #e8d5c0;
    border-radius: 16px;
    padding: 14px;
    box-shadow:
        0 2px 12px rgba(139, 90, 43, 0.08),
        0 0 0 1px rgba(232, 213, 192, 0.5);
    max-width: 100%;
    box-sizing: border-box;
    font-size: 15px;
    line-height: 1.65;
    position: relative;
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.temple-ui:hover {
    box-shadow:
        0 4px 20px rgba(139, 90, 43, 0.12),
        0 0 0 1px rgba(232, 213, 192, 0.7);
}

.temple-ui::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4a574, #e8c9a0, #f0d9b5, #e8c9a0, #d4a574);
    background-size: 200% 100%;
    animation: header-shimmer 4s ease-in-out infinite;
    border-radius: 16px 16px 0 0;
}

@keyframes header-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.temple-ui::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: 
        radial-gradient(circle at 70% 70%, rgba(212, 165, 116, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* --- 折叠栏 --- */
.temple-ui details {
    background: #fffef9;
    border: 1.5px solid #e8d5c0;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: visible;
    transition: all 0.25s ease;
    position: relative;
    z-index: 1;
}

.temple-ui details:hover {
    border-color: #d4a574;
    box-shadow: 0 2px 10px rgba(212, 165, 116, 0.15);
    z-index: 10;
}

.temple-ui summary {
    background: linear-gradient(135deg, #d4a574 0%, #c8956a 100%);
    color: #fff;
    padding: 10px 14px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(100, 60, 20, 0.2);
    position: relative;
    border-radius: 10px 10px 0 0;
    min-height: 40px;
    user-select: none;
    transition: background 0.3s ease;
}

.temple-ui summary::-webkit-details-marker {
    display: none;
}

.temple-ui summary:hover {
    background: linear-gradient(135deg, #c8956a 0%, #b8845a 100%);
}

.temple-ui summary::after {
    content: "▼";
    font-size: 11px;
    opacity: 0.7;
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.temple-ui details[open] summary::after {
    transform: rotate(180deg);
}

.temple-ui details[open] summary {
    background: linear-gradient(135deg, #c8956a 0%, #b8845a 100%);
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.temple-content {
    padding: 12px;
    background-color: #fffef9;
    border-radius: 0 0 10px 10px;
}

/* --- 顶部环境 --- */
.env-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 6px;
    text-align: center;
    background: linear-gradient(135deg, #f5ede4 0%, #faf5ef 100%);
    padding: 10px;
    border-radius: 10px;
    font-size: 0.9em;
    border: 1.5px solid #e8d5c0;
    margin-bottom: 10px;
    position: relative;
}

.env-grid::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4a574, transparent);
}

.env-grid > div {
    background: #fffef9;
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid #ebe0d3;
    font-weight: 600;
    color: #6b4c30;
    transition: all 0.2s ease;
    font-size: 0.88em;
}

.env-grid > div:hover {
    background: #fff8f0;
    border-color: #d4a574;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(212, 165, 116, 0.15);
}

.env-extra {
    margin-top: 4px;
    text-align: center;
    font-size: 0.85em;
    color: #8b6f52;
    font-style: italic;
}

/* --- 主角状态 --- */
.stat-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9em;
    background: #fffef9;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid #ebe0d3;
    gap: 10px;
    transition: border-color 0.2s;
}

.stat-row:hover {
    border-color: #d4a574;
}

.stat-label {
    min-width: 70px;
    font-weight: 700;
    color: #8b5a2b;
    flex-shrink: 0;
    font-size: 0.88em;
}

.bar-track {
    flex-grow: 1;
    height: 18px;
    background: #f0e8df;
    border-radius: 9px;
    border: 1px solid #e0d0c0;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.bar-fill {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 10px;
    color: white;
    padding-right: 6px;
    font-weight: 700;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 25px;
    border-radius: 9px;
}

.bar-hp {
    background: linear-gradient(90deg, #66bb6a, #81c784);
    position: relative;
}

.bar-hp::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent);
    border-radius: 9px 9px 0 0;
}

.bar-mp {
    background: linear-gradient(90deg, #42a5f5, #64b5f6);
    position: relative;
}

.bar-mp::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent);
    border-radius: 9px 9px 0 0;
}

.bar-karma {
    background: linear-gradient(90deg, #ce93d8, #ba68c8);
    position: relative;
    overflow: hidden;
}

.bar-karma::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: karma-shine 2.5s infinite;
}

@keyframes karma-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.bar-karma::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent);
    border-radius: 9px 9px 0 0;
}

.temple-divider {
    border: 0;
    border-top: 1px solid #ebe0d3;
    margin: 8px 0;
}

.char-info {
    font-size: 0.88em;
    padding: 4px 0;
    color: #5d4037;
}

.bloodline-active {
    color: #c62828;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.bloodline-active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #c62828, #ef5350, #c62828);
    border-radius: 1px;
    animation: bloodline-pulse 1.5s ease-in-out infinite;
}

@keyframes bloodline-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.skill-header {
    font-weight: 700;
    margin-top: 6px;
    color: #8b5a2b;
    font-size: 1em;
    padding-bottom: 3px;
    border-bottom: 1.5px dashed #e8d5c0;
}

.skill-section {
    margin-bottom: 12px;
    background: #fdfbf7;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ebe0d3;
}

.skill-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

/* --- Tooltip --- */
.tooltip {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #f5ede4, #faf5ef);
    border: 1.5px solid #d4a574;
    padding: 6px 10px;
    border-radius: 20px;
    cursor: help;
    font-size: 0.88em;
    color: #6b4c30;
    font-weight: 600;
    transition: all 0.25s ease;
    z-index: 10;
}

.tooltip:hover {
    border-color: #8b5a2b;
    background: linear-gradient(135deg, #fff8f0, #ffefd5);
    color: #5d3a1a;
    transform: translateY(-2px);
    z-index: 100;
    box-shadow: 0 4px 12px rgba(139, 90, 43, 0.15);
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background: #fffef9;
    color: #3d3029;
    text-align: left;
    border: 1.5px solid #d4a574;
    padding: 10px;
    border-radius: 10px;
    position: absolute;
    z-index: 999;
    bottom: 130%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateY(5px);
    box-shadow: 0 4px 16px rgba(139, 90, 43, 0.12);
    font-size: 0.85em;
    pointer-events: none;
    line-height: 1.5;
    word-wrap: break-word;
    font-weight: normal;
}

.tooltip .tooltiptext::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #d4a574 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* --- NPC 卡片 --- */
.npc-card {
    background: #fffef9;
    border: 1.5px solid #e8d5c0;
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 10px;
    border-left: 4px solid #d4a574;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.npc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #d4a574, #8b5a2b);
    border-radius: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.npc-card:hover {
    border-color: #d4a574;
    box-shadow: 0 2px 10px rgba(212, 165, 116, 0.12);
    transform: translateX(3px);
}

.npc-card:hover::before {
    opacity: 1;
}

.npc-identity {
    font-size: 0.78em;
    color: #8b7355;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.npc-mood-row {
    margin: 3px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kaomoji-box {
    font-family: "MS PGothic", "Segoe UI Symbol", sans-serif;
    background: linear-gradient(135deg, #d4a574, #c8956a);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
    margin: 3px 0;
    font-weight: 700;
    font-size: 0.85em;
    flex-shrink: 0;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}

.mood-desc {
    color: #c62828;
    font-weight: 600;
    flex-grow: 1;
    font-size: 0.9em;
}

.misunderstanding-alert {
    color: #bf360c;
    font-weight: 600;
    background: #fff3e0;
    padding: 6px 10px;
    border-radius: 6px;
    display: block;
    margin-top: 6px;
    border: 1.5px solid #ffab91;
    position: relative;
    font-size: 0.88em;
    animation: alert-breathe 2s ease-in-out infinite;
}

@keyframes alert-breathe {
    0%, 100% { border-color: #ffab91; }
    50% { border-color: #ff7043; }
}

.misunderstanding-alert::before {
    content: "⚠";
    margin-right: 5px;
    font-size: 1em;
}

.npc-alert-row {
    font-size: 0.85em;
    margin-top: 3px;
    color: #bf360c;
}

.npc-details-wrapper {
    margin-top: 5px;
    font-size: 0.85em;
    color: #5d4037;
    padding: 6px 8px;
    background: #faf5ef;
    border-radius: 6px;
    border: 1px solid #ebe0d3;
}

.gentleman-summary {
    background: #f5ede4;
    color: #6b4c30;
    font-size: 0.8em;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
}

.gentleman-content {
    padding: 5px;
    font-size: 0.85em;
    border-left: 2px solid #d4a574;
    margin-left: 5px;
    margin-top: 4px;
}

/* --- 烦恼与弹幕 --- */
.crisis-panel {
    border: 1.5px solid #ef5350;
    background: #fff8f7;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    position: relative;
}

.crisis-panel::before {
    content: '!';
    position: absolute;
    top: -8px;
    left: 12px;
    font-size: 11px;
    font-weight: 700;
    background: #ef5350;
    color: white;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.danmaku-box {
    background: linear-gradient(135deg, #4a3728 0%, #5d4037 100%);
    color: #f5ede4;
    padding: 10px 12px;
    border-radius: 8px;
    font-family: 'PingFang SC', 'Microsoft YaHei', monospace;
    border: 1.5px solid #8d6e63;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
    font-size: 0.9em;
}

.danmaku-box::before {
    content: "弹幕";
    position: absolute;
    top: 0;
    right: 0;
    background: #d4a574;
    color: white;
    padding: 1px 6px;
    font-size: 9px;
    border-radius: 0 6px 0 6px;
    font-weight: 600;
    letter-spacing: 1px;
}

.danmaku-box.system-msg {
    border-color: #42a5f5;
    background: linear-gradient(135deg, #1a3a5c 0%, #263e5a 100%);
}

.danmaku-user {
    color: #ffd54f;
    font-weight: 700;
}

.danmaku-sys {
    color: #80cbc4;
    font-style: italic;
    font-weight: 600;
}

.target-row {
    margin-top: 4px;
    font-size: 0.85em;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

/* --- 记忆区 --- */
.memory-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85em;
    background: #fffef9;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid #e8d5c0;
    margin-bottom: 8px;
}

.memory-table th {
    background: linear-gradient(135deg, #d4a574, #c8956a);
    color: #fff;
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}

.memory-table td {
    border-bottom: 1px solid #ebe0d3;
    padding: 8px 10px;
    vertical-align: top;
}

.memory-table tr:last-child td {
    border-bottom: none;
}

.memory-table tr:nth-child(even) {
    background: #faf5ef;
}

.memory-table tr:hover {
    background: #fff8f0;
}

.stm-header {
    margin-top: 8px;
    color: #8b5a2b;
    font-weight: 700;
    border-bottom: 1.5px solid #e8d5c0;
    padding-bottom: 4px;
    font-size: 0.92em;
}

/* --- 行动区 --- */
.action-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-btn {
    background: #fffef9;
    border: 1.5px solid #e8d5c0;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    text-align: left;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    user-select: none;
    color: #5d4037;
    font-size: 0.92em;
}

.action-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #d4a574;
    border-radius: 3px 0 0 3px;
    transition: width 0.25s ease;
}

.action-btn:hover {
    background: #fff8f0;
    border-color: #d4a574;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.15);
}

.action-btn:hover::before {
    width: 5px;
    background: linear-gradient(180deg, #d4a574, #8b5a2b);
}

.action-btn:active {
    transform: translateX(2px);
    box-shadow: 0 1px 4px rgba(212, 165, 116, 0.1);
}

/* --- 响应式设计 --- */
@media (max-width: 768px) {
    .temple-ui {
        padding: 10px;
        border-radius: 12px;
        font-size: 14px;
    }

    .env-grid {
        grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
        gap: 4px;
        padding: 8px;
        font-size: 0.82em;
    }

    .stat-row {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 6px 8px;
    }

    .stat-label {
        width: 100%;
        font-size: 0.82em;
    }

    .bar-track {
        width: 100%;
        height: 16px;
    }

    .tooltip .tooltiptext {
        width: 170px;
        margin-left: -85px;
        font-size: 0.8em;
        padding: 8px;
    }

    .memory-table {
        font-size: 0.78em;
    }

    .memory-table th,
    .memory-table td {
        padding: 6px 8px;
    }

    .action-btn {
        padding: 8px 12px;
        font-size: 0.88em;
    }

    .npc-card {
        padding: 8px 10px;
    }

    .danmaku-box {
        padding: 8px 10px;
        font-size: 0.85em;
    }

    .skill-flex {
        gap: 6px;
    }

    .tooltip {
        padding: 4px 8px;
        font-size: 0.82em;
    }
}

@media (max-width: 400px) {
    .temple-ui {
        padding: 8px;
        border-radius: 10px;
        font-size: 13px;
        border-width: 1.5px;
    }

    .env-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3px;
        padding: 6px;
    }

    .stat-row {
        margin-bottom: 6px;
        padding: 5px 7px;
    }

    .npc-card {
        margin-bottom: 8px;
        padding: 7px 9px;
    }
}

/* --- 打印样式 --- */
@media print {
    .temple-ui {
        border: 1px solid #ccc;
        box-shadow: none;
        background: white !important;
        color: black !important;
    }

    .tooltip:hover .tooltiptext,
    .tooltip .tooltiptext {
        display: none !important;
    }

    .bar-karma::before {
        animation: none;
    }

    .bloodline-active::after {
        animation: none;
    }
}

/* --- 滚动条美化 --- */
.temple-ui ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.temple-ui ::-webkit-scrollbar-track {
    background: #f5ede4;
    border-radius: 3px;
}

.temple-ui ::-webkit-scrollbar-thumb {
    background: #d4a574;
    border-radius: 3px;
}

.temple-ui ::-webkit-scrollbar-thumb:hover {
    background: #8b5a2b;
}

/* --- 文本选择高亮 --- */
.temple-ui ::selection {
    background: rgba(212, 165, 116, 0.3);
    color: #3d3029;
}

/* ========================================
   日历rili平台 - 加载动画适配
======================================== */

/* 加载容器 */
#ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q) {
    justify-content: center !important;
    align-items: center !important;
    width: auto !important;
    height: auto !important;
    min-height: 120px !important;
    background: linear-gradient(135deg, #fdfbf7, #faf5ef) !important;
    border: 1.5px solid #e8d5c0 !important;
    border-radius: 16px !important;
    padding: 24px 28px !important;
    margin: 10px 0 !important;
    animation: loading-breathe 3s ease-in-out infinite !important;
    position: relative !important;
    overflow: hidden !important;
}

/* 顶部装饰线 */
#ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q)::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, #d4a574, #e8c9a0, #f0d9b5, #e8c9a0, #d4a574) !important;
    background-size: 200% 100% !important;
    animation: loading-bar 2s ease-in-out infinite !important;
    border-radius: 16px 16px 0 0 !important;
    z-index: 2 !important;
}

/* 隐藏原有旋转点 */
#ai-chat-answer .chat-answer-container .style_dot-flashing__8L91Q {
    display: none !important;
}

/* 墨水滴落动画元素 */
#ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q)::after {
    content: '' !important;
    position: absolute !important;
    width: 8px !important;
    height: 8px !important;
    background: #d4a574 !important;
    border-radius: 50% !important;
    animation: ink-drop 2.5s ease-in-out infinite !important;
    z-index: 3 !important;
    display: block !important;
    box-shadow:
        20px 0 0 -1px #c8956a,
        40px 0 0 -2px #b8845a !important;
}

/* 背景纹理 */
#ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q) {
    background-image:
        linear-gradient(135deg, rgba(212, 165, 116, 0.04) 25%, transparent 25%),
        linear-gradient(225deg, rgba(212, 165, 116, 0.04) 25%, transparent 25%),
        linear-gradient(315deg, rgba(212, 165, 116, 0.04) 25%, transparent 25%),
        linear-gradient(45deg, rgba(212, 165, 116, 0.04) 25%, transparent 25%) !important;
    background-size: 30px 30px !important;
    background-repeat: repeat !important;
}

/* 呼吸动画 */
@keyframes loading-breathe {
    0%, 100% {
        box-shadow: 0 2px 12px rgba(139, 90, 43, 0.06);
    }
    50% {
        box-shadow: 0 4px 18px rgba(139, 90, 43, 0.1);
    }
}

/* 顶部加载条动画 */
@keyframes loading-bar {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 墨水滴落动画 */
@keyframes ink-drop {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-8px) scale(1.1);
        opacity: 1;
    }
    50% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-4px) scale(1.05);
        opacity: 0.9;
    }
}

/* 点状闪烁复用 */
#ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q) .style_dot-flashing__8L91Q {
    display: block !important;
    position: absolute !important;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.4) 40%, transparent 70%) !important;
    border-radius: 50% !important;
    width: 5px !important;
    height: 5px !important;
    border: none !important;
    animation: dot-fade 2s ease-in-out infinite !important;
    z-index: 1 !important;
    top: 30% !important;
    left: 25% !important;
    box-shadow:
        30px 20px 0 0 rgba(212, 165, 116, 0.3),
        60px -10px 0 0 rgba(200, 149, 106, 0.25),
        90px 15px 0 0 rgba(184, 132, 90, 0.2) !important;
}

#ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q) .style_dot-flashing__8L91Q::before {
    content: '' !important;
    position: absolute !important;
    width: 6px !important;
    height: 6px !important;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.25) 30%, transparent 70%) !important;
    border-radius: 50% !important;
    bottom: -40px !important;
    left: 40px !important;
    animation: dot-rise 3s ease-in-out infinite !important;
    display: block !important;
    z-index: 0 !important;
}

#ai-chat-answer .chat-answer-container div:has(> .style_dot-flashing__8L91Q) .style_dot-flashing__8L91Q::after {
    content: '' !important;
    position: absolute !important;
    width: 4px !important;
    height: 4px !important;
    background: radial-gradient(circle, rgba(200, 149, 106, 0.2) 30%, transparent 70%) !important;
    border-radius: 50% !important;
    bottom: -30px !important;
    left: 80px !important;
    animation: dot-rise 2.5s ease-in-out 0.5s infinite !important;
    display: block !important;
    z-index: 0 !important;
}

@keyframes dot-fade {
    0%, 100% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes dot-rise {
    0% { transform: translateY(0) scale(0.8); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translateY(-50px) scale(1.1); opacity: 0; }
}