think {
  display: none;
}

/* ===== 1. 移除顶部颜色条（Rili平台无此元素，保留选择器但不会生效） ===== */
[class*="bg-[#F1CBCB]"], 
[class*="bg-[#c9e1e9]"] {
    display: none !important;
}

/* ===== 2. 统一聊天框基础样式（输入+输出） ===== */
/* Rili的通用消息容器 */
.group-\[\.is-user\]\:ml-auto,
.group-\[\.is-assistant\]\:text-foreground {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(245, 247, 250, 0.92) 100%) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    border: 1px solid rgba(220, 225, 235, 0.6) !important;
    box-shadow: 
        0 2px 12px rgba(0, 0, 0, 0.04),
        0 8px 32px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    border-radius: 16px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: visible !important;
}

.group-\[\.is-user\]\:ml-auto:hover,
.group-\[\.is-assistant\]\:text-foreground:hover {
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 12px 48px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-1px) !important;
    border-color: rgba(200, 210, 225, 0.7) !important;
}

/* 用户输入框特殊样式 */
.is-user .group-\[\.is-user\]\:ml-auto {
    background: linear-gradient(135deg, 
        rgba(240, 245, 255, 0.95) 0%, 
        rgba(230, 240, 255, 0.92) 100%) !important;
    border-left: 3px solid rgba(100, 150, 255, 0.4) !important;
}

.is-user .group-\[\.is-user\]\:ml-auto:hover {
    border-left-color: rgba(100, 150, 255, 0.7) !important;
}

/* ===== 3. 正文文字样式 ===== */
.rili-markdown-renderer {
    color: #2c3e50 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif !important;
    line-height: 1.75 !important;
    letter-spacing: 0.3px !important;
    font-weight: 400 !important;
}

.rili-markdown-renderer strong {
    font-weight: 600 !important;
    color: #1a1a1a !important;
}

.rili-markdown-renderer::selection {
    background: rgba(100, 150, 255, 0.25) !important;
    color: inherit !important;
}

/* ===== 4. 底部附加元素美化（按钮区域） ===== */
/* Rili的按钮容器 */
.bg-muted.rounded.flex.p-0\.5 button,
.flex.items-center.gap-1 button {
    color: #5a6c7d !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    opacity: 0.7 !important;
}

.bg-muted.rounded.flex.p-0\.5 button:hover,
.flex.items-center.gap-1 button:hover {
    color: #3a4c5d !important;
    opacity: 1 !important;
    background: rgba(90, 108, 125, 0.08) !important;
}

/* Token计数器样式 */
.flex.items-center.gap-2.text-xs.font-mono {
    color: #7a8c9d !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
}

.flex.items-center.gap-2.text-xs.font-mono span {
    color: #ff8a65 !important;
    font-weight: 600 !important;
}

/* ===== 5. 微妙的呼吸光效（仅输出框） ===== */
@keyframes breathe {
    0%, 100% { 
        box-shadow: 
            0 2px 12px rgba(0, 0, 0, 0.04),
            0 8px 32px rgba(0, 0, 0, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }
    50% { 
        box-shadow: 
            0 4px 16px rgba(0, 0, 0, 0.05),
            0 12px 40px rgba(0, 0, 0, 0.07),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
}

.is-assistant .group-\[\.is-assistant\]\:text-foreground {
    animation: breathe 6s ease-in-out infinite !important;
}

/* ===== 6. 隐藏默认加载动画 ===== */
/* Rili的加载动画是三个圆点，直接隐藏父容器 */
.flex.gap-2.w-full.h-full.items-center.justify-center {
    display: none !important;
}

/* ===== 7. 自定义加载动画（优雅的脉冲点） ===== */
/* 为AI回复框的父容器添加加载状态检测 */
.is-assistant .space-y-3:has(.flex.gap-2.w-full) {
    position: relative !important;
    min-height: 24px !important;
}

.is-assistant .space-y-3:has(.flex.gap-2.w-full)::before {
    content: '' !important;
    position: absolute !important;
    width: 100% !important;
    height: 24px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 20'%3E%3Ccircle cx='10' cy='10' r='4' fill='%235a6c7d'%3E%3Canimate attributeName='opacity' values='0.3;1;0.3' dur='1.2s' repeatCount='indefinite' begin='0s'/%3E%3Canimate attributeName='r' values='3;5;3' dur='1.2s' repeatCount='indefinite' begin='0s'/%3E%3C/circle%3E%3Ccircle cx='30' cy='10' r='4' fill='%235a6c7d'%3E%3Canimate attributeName='opacity' values='0.3;1;0.3' dur='1.2s' repeatCount='indefinite' begin='0.4s'/%3E%3Canimate attributeName='r' values='3;5;3' dur='1.2s' repeatCount='indefinite' begin='0.4s'/%3E%3C/circle%3E%3Ccircle cx='50' cy='10' r='4' fill='%235a6c7d'%3E%3Canimate attributeName='opacity' values='0.3;1;0.3' dur='1.2s' repeatCount='indefinite' begin='0.8s'/%3E%3Canimate attributeName='r' values='3;5;3' dur='1.2s' repeatCount='indefinite' begin='0.8s'/%3E%3C/circle%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
}

@media (max-width: 480px) {
    .is-assistant .space-y-3:has(.flex.gap-2.w-full)::before {
        width: 48px !important;
        height: 16px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .is-assistant .space-y-3:has(.flex.gap-2.w-full)::before {
        animation-duration: 2s !important;
    }
}

/* ===== 8. 顶部栏美化（Rili没有顶部固定栏，这部分保留但可能不生效） ===== */
.sticky.w-full.top-0.flex.items-center {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(250, 252, 255, 0.95) 100%) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border-bottom: 1px solid rgba(220, 225, 235, 0.5) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s ease !important;
}

/* ===== 9. 底部栏美化（Rili底部输入栏） ===== */
/* Rili的渐变背景容器 */
.bg-gradient-to-t {
    background: linear-gradient(to top, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(255, 255, 255, 0.95) 60%,
        rgba(255, 255, 255, 0) 100%) !important;
}

/* Rili的输入框容器 - 需要更精确的选择器 */
.w-full.max-w-2xl.mx-auto.my-3.px-4 input[type="text"],
.w-full.max-w-2xl.mx-auto.my-3.px-4 textarea {
    background: rgba(250, 252, 255, 0.95) !important;
    border: 1.5px solid rgba(220, 230, 245, 0.6) !important;
    border-radius: 16px !important;
    box-shadow: 
        0 2px 12px rgba(0, 0, 0, 0.04),
        0 8px 24px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.w-full.max-w-2xl.mx-auto.my-3.px-4 input[type="text"]:focus,
.w-full.max-w-2xl.mx-auto.my-3.px-4 textarea:focus {
    border-color: rgba(100, 150, 255, 0.5) !important;
    box-shadow: 
        0 4px 16px rgba(100, 150, 255, 0.12),
        0 8px 32px rgba(100, 150, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.w-full.max-w-2xl.mx-auto.my-3.px-4 input[type="text"],
.w-full.max-w-2xl.mx-auto.my-3.px-4 textarea {
    color: #2c3e50 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    letter-spacing: 0.3px !important;
}

.w-full.max-w-2xl.mx-auto.my-3.px-4 input[type="text"]::placeholder,
.w-full.max-w-2xl.mx-auto.my-3.px-4 textarea::placeholder {
    color: #a0aec0 !important;
    font-weight: 400 !important;
}

.w-full.max-w-2xl.mx-auto.my-3.px-4 input[type="text"]::selection,
.w-full.max-w-2xl.mx-auto.my-3.px-4 textarea::selection {
    background: rgba(100, 150, 255, 0.25) !important;
}

/* ===== 10-26. 状态栏系统保持不变 ===== */
/* 以下状态栏CSS针对的是markdown内容区域，无需修改选择器 */

.situation-panel,
.char-card,
.npc-container,
.env-panel,
.social-panel,
.memory-core,
.action-panel {
    padding: 16px;
    margin-top: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(250, 252, 255, 0.95));
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(100, 120, 150, 0.08);
}

.situation-panel {
    background: linear-gradient(135deg, rgba(100, 150, 255, 0.08), rgba(150, 100, 255, 0.06));
    border: 1px solid rgba(100, 150, 255, 0.15);
}

.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #4a5568;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.info-row:hover {
    background: rgba(255, 255, 255, 0.6);
}

.label-icon {
    font-size: 18px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.info-text {
    flex: 1;
    line-height: 1.7;
    font-weight: 500;
}

.char-header {
    background: linear-gradient(135deg, rgba(100, 150, 255, 0.06), transparent);
    border-bottom: 2px solid rgba(100, 150, 255, 0.25);
    padding: 14px;
    margin: -16px -16px 16px -16px;
    border-radius: 12px 12px 0 0;
}

.char-name {
    font-size: 20px;
    font-weight: 800;
    color: #1a2332;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.char-tags,
.npc-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: linear-gradient(135deg, rgba(100, 150, 255, 0.15), rgba(120, 180, 255, 0.1));
    color: #2c4a6d;
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(100, 150, 255, 0.25);
    box-shadow: 0 2px 4px rgba(100, 150, 255, 0.1);
    transition: all 0.2s ease;
}

.tag:hover {
    background: linear-gradient(135deg, rgba(100, 150, 255, 0.22), rgba(120, 180, 255, 0.15));
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(100, 150, 255, 0.15);
}

.char-section {
    margin-bottom: 18px;
}

.section-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: linear-gradient(90deg, rgba(100, 150, 255, 0.1), transparent);
    border-left: 4px solid rgba(100, 150, 255, 0.6);
    border-radius: 0 6px 6px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 13px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.grid-item {
    background: linear-gradient(135deg, rgba(245, 250, 255, 0.7), rgba(250, 252, 255, 0.5));
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(220, 230, 245, 0.6);
    transition: all 0.3s ease;
}

.grid-item:hover {
    background: linear-gradient(135deg, rgba(240, 248, 255, 0.9), rgba(245, 250, 255, 0.8));
    box-shadow: 0 4px 12px rgba(100, 120, 150, 0.1);
    transform: translateY(-2px);
}

.key {
    font-weight: 700;
    color: #2c4a6d;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.val {
    color: #4a5568;
    font-weight: 500;
}

.appearance-text p {
    margin: 8px 0;
    font-size: 13px;
    line-height: 1.8;
    color: #4a5568;
    padding-left: 8px;
    border-left: 2px solid rgba(100, 150, 255, 0.2);
}

.appearance-text strong {
    color: #1a2332;
    font-weight: 700;
}

.personality-tags {
    color: #5a6c7d;
    font-size: 13px;
    margin-bottom: 10px;
    font-weight: 500;
    padding: 8px 12px;
    background: rgba(255, 250, 240, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255, 200, 100, 0.2);
}

.motivation {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.8;
    padding: 10px 12px;
    background: rgba(250, 248, 255, 0.5);
    border-radius: 8px;
    border-left: 3px solid rgba(150, 100, 255, 0.4);
}

.relation-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.relation-item {
    background: linear-gradient(135deg, rgba(245, 250, 255, 0.7), rgba(250, 252, 255, 0.5));
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    color: #4a5568;
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(220, 230, 245, 0.6);
    transition: all 0.3s ease;
}

.relation-item:hover {
    background: linear-gradient(135deg, rgba(240, 248, 255, 0.9), rgba(245, 250, 255, 0.8));
    box-shadow: 0 3px 10px rgba(100, 120, 150, 0.1);
    transform: translateX(4px);
}

.relation-type {
    background: linear-gradient(135deg, rgba(100, 150, 255, 0.18), rgba(120, 180, 255, 0.12));
    color: #2c4a6d;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(100, 150, 255, 0.15);
}

.finance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.finance-item {
    background: linear-gradient(135deg, rgba(240, 255, 245, 0.7), rgba(245, 255, 250, 0.5));
    border: 1px solid rgba(180, 220, 180, 0.4);
    padding: 12px 14px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    transition: all 0.3s ease;
}

.finance-item:hover {
    background: linear-gradient(135deg, rgba(235, 255, 240, 0.9), rgba(240, 255, 245, 0.8));
    box-shadow: 0 4px 12px rgba(120, 200, 120, 0.15);
    transform: translateY(-2px);
}

.finance-label {
    font-size: 11px;
    font-weight: 700;
    color: #1e4d2b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.finance-val {
    font-size: 15px;
    color: #2d6a4f;
    font-weight: 700;
}

.status-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 14px;
}

.stat-bar {
    display: grid;
    grid-template-columns: 90px 1fr 55px;
    align-items: center;
    gap: 12px;
}

.stat-label {
    font-size: 12px;
    font-weight: 700;
    color: #2c4a6d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bar {
    height: 12px;
    background: rgba(220, 230, 245, 0.5);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.fill.health {
    background: linear-gradient(90deg, #38ef7d 0%, #11998e 100%);
    box-shadow: 0 0 10px rgba(56, 239, 125, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.fill.hunger {
    background: linear-gradient(90deg, #f2c94c 0%, #f2994a 100%);
    box-shadow: 0 0 10px rgba(242, 201, 76, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.fill.fatigue {
    background: linear-gradient(90deg, #ff6b6b 0%, #ee5a6f 100%);
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.stat-num {
    text-align: right;
    font-size: 14px;
    font-weight: 800;
    color: #1a2332;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.inventory-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inv-category {
    background: linear-gradient(135deg, rgba(245, 250, 255, 0.7), rgba(250, 252, 255, 0.5));
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.8;
    border: 1px solid rgba(220, 230, 245, 0.6);
    transition: all 0.3s ease;
}

.inv-category:hover {
    background: linear-gradient(135deg, rgba(240, 248, 255, 0.9), rgba(245, 250, 255, 0.8));
    box-shadow: 0 3px 10px rgba(100, 120, 150, 0.1);
}

.skill-list,
.certificate-list,
.vehicle-info {
    background: linear-gradient(135deg, rgba(245, 250, 255, 0.7), rgba(250, 252, 255, 0.5));
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.8;
    border: 1px solid rgba(220, 230, 245, 0.6);
    margin-bottom: 10px;
}

.occult-section {
    background: linear-gradient(135deg, rgba(150, 100, 255, 0.08), rgba(100, 150, 255, 0.06));
    border-left: 4px solid rgba(120, 80, 200, 0.6);
    padding: 16px;
    border-radius: 10px;
    margin-top: 10px;
    box-shadow: 0 4px 16px rgba(120, 80, 200, 0.12);
}

.occult-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.occult-item {
    background: linear-gradient(135deg, rgba(245, 245, 255, 0.7), rgba(250, 248, 255, 0.5));
    padding: 10px 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(180, 160, 220, 0.3);
    transition: all 0.3s ease;
}

.occult-item:hover {
    background: linear-gradient(135deg, rgba(240, 240, 255, 0.9), rgba(245, 245, 255, 0.8));
    box-shadow: 0 3px 10px rgba(120, 80, 200, 0.15);
    transform: translateY(-2px);
}

.occult-key {
    font-size: 11px;
    font-weight: 700;
    color: #4a3a7a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.occult-val {
    font-size: 14px;
    color: #6a5a8a;
    font-weight: 700;
}

.spell-list,
.artifact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.spell-list p,
.artifact-list p {
    font-weight: 700;
    color: #4a3a7a;
    font-size: 13px;
    margin-bottom: 8px;
}

.spell-item,
.artifact-item {
    background: linear-gradient(135deg, rgba(240, 240, 255, 0.8), rgba(245, 245, 255, 0.6));
    padding: 12px 14px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(180, 160, 220, 0.3);
    transition: all 0.3s ease;
}

.spell-item:hover,
.artifact-item:hover {
    background: linear-gradient(135deg, rgba(235, 235, 255, 0.95), rgba(240, 240, 255, 0.85));
    box-shadow: 0 4px 12px rgba(120, 80, 200, 0.2);
    transform: translateX(4px);
}

.spell-name,
.artifact-name {
    font-weight: 700;
    color: #3a2a6a;
    font-size: 14px;
}

.spell-level,
.artifact-quality {
    background: linear-gradient(135deg, rgba(120, 80, 200, 0.2), rgba(150, 100, 255, 0.15));
    color: #4a3a7a;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(120, 80, 200, 0.15);
}

.spell-effect,
.artifact-effect {
    font-size: 13px;
    color: #5a4a8a;
    font-weight: 500;
}

.spell-cost {
    font-size: 12px;
    color: #8a5a5a;
    font-weight: 600;
}

.karma-info {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(255, 250, 245, 0.6);
    border-radius: 8px;
    border-left: 3px solid rgba(255, 180, 100, 0.5);
}

.karma-info p {
    margin: 6px 0;
    font-size: 13px;
    color: #6a5a4a;
    line-height: 1.7;
}

.npc-card {
    background: linear-gradient(135deg, rgba(250, 248, 255, 0.8), rgba(255, 252, 250, 0.7));
    border: 1px solid rgba(200, 190, 230, 0.4);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 14px;
    box-shadow: 0 3px 12px rgba(150, 100, 255, 0.1);
    transition: all 0.3s ease;
}

.npc-card:hover {
    box-shadow: 0 6px 20px rgba(150, 100, 255, 0.15);
    transform: translateY(-2px);
}

.npc-header {
    background: linear-gradient(135deg, rgba(150, 100, 255, 0.08), transparent);
    border-bottom: 2px solid rgba(150, 100, 255, 0.3);
    padding: 12px 14px;
    margin: -16px -16px 14px -16px;
    border-radius: 12px 12px 0 0;
}

.npc-name {
    font-size: 18px;
    font-weight: 800;
    color: #1a2332;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.npc-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.npc-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #4a5568;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.npc-row:hover {
    background: rgba(255, 255, 255, 0.6);
}

.npc-row .icon {
    width: 20px;
    height: 20px;
    fill: #5a6c7d;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.favor {
    color: #ff6b6b;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(255, 107, 107, 0.3);
}

.npc-collapsible {
    margin-top: 10px;
}

.collapsible-trigger {
    font-size: 13px;
    font-weight: 700;
    color: #5a6c7d;
    cursor: pointer;
    padding: 8px 10px;
    user-select: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.collapsible-trigger:hover {
    color: #2c4a6d;
    background: rgba(100, 150, 255, 0.08);
}

.collapsible-content {
    padding: 12px 0;
    font-size: 13px;
    line-height: 1.8;
    color: #4a5568;
}

.collapsible-content p {
    margin: 8px 0;
    padding-left: 8px;
    border-left: 2px solid rgba(150, 100, 255, 0.2);
}

.npc-divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(150, 100, 255, 0.2), transparent);
    margin: 16px 0;
}

.env-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.env-sense {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 12px;
    background: rgba(250, 252, 255, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(220, 230, 245, 0.6);
    transition: all 0.3s ease;
}

.env-sense:hover {
    background: rgba(245, 250, 255, 0.9);
    box-shadow: 0 3px 10px rgba(100, 120, 150, 0.1);
    transform: translateX(4px);
}

.sense-icon {
    font-size: 22px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.sense-content {
    flex: 1;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.8;
}

.sense-content strong {
    color: #1a2332;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.env-crowd,
.env-interact {
    background: linear-gradient(135deg, rgba(245, 255, 250, 0.7), rgba(250, 255, 252, 0.5));
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.8;
    border: 1px solid rgba(200, 230, 210, 0.5);
}

.env-crowd strong,
.env-interact strong {
    color: #1a2332;
    font-weight: 700;
}

.social-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-item {
    background: linear-gradient(135deg, rgba(255, 245, 245, 0.7), rgba(255, 250, 248, 0.5));
    border: 1px solid rgba(255, 200, 200, 0.4);
    padding: 12px 14px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.social-item:hover {
    background: linear-gradient(135deg, rgba(255, 240, 240, 0.9), rgba(255, 245, 245, 0.8));
    box-shadow: 0 3px 10px rgba(200, 100, 100, 0.12);
    transform: translateX(4px);
}

.social-label {
    font-size: 12px;
    font-weight: 700;
    color: #8b4513;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-value {
    font-size: 13px;
    color: #a0522d;
    font-weight: 600;
}

.memory-core {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.memory-section {
    background: linear-gradient(135deg, rgba(255, 252, 245, 0.7), rgba(255, 254, 250, 0.5));
    border: 1px solid rgba(230, 220, 200, 0.5);
    border-radius: 10px;
    padding: 14px;
    transition: all 0.3s ease;
}

.memory-section:hover {
    box-shadow: 0 4px 16px rgba(200, 180, 150, 0.15);
}

.section-header {
    font-size: 14px;
    font-weight: 800;
    color: #1a2332;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(220, 210, 190, 0.5);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.memory-note {
    font-size: 11px;
    color: #6a5a4a;
    font-style: italic;
    margin-bottom: 10px;
    padding-left: 8px;
    border-left: 2px solid rgba(200, 180, 150, 0.3);
}

.anchor-section {
    border-left: 4px solid rgba(255, 150, 80, 0.6);
}

.ltm-section {
    border-left: 4px solid rgba(100, 150, 255, 0.6);
}

.stm-section {
    border-left: 4px solid rgba(120, 200, 150, 0.6);
}

.state-section {
    border-left: 4px solid rgba(180, 180, 180, 0.6);
}

.entity-section {
    border-left: 4px solid rgba(200, 150, 100, 0.6);
}

.open-section {
    border-left: 4px solid rgba(255, 200, 100, 0.6);
}

.close-section {
    border-left: 4px solid rgba(150, 150, 150, 0.5);
    opacity: 0.9;
}

.anchor-list,
.ltm-list,
.stm-list,
.entity-list,
.open-list,
.close-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.anchor-item,
.ltm-item,
.stm-item,
.entity-item,
.open-item,
.close-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(230, 220, 200, 0.5);
    transition: all 0.3s ease;
}

.anchor-item:hover,
.ltm-item:hover,
.stm-item:hover,
.entity-item:hover,
.open-item:hover,
.close-item:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 3px 10px rgba(200, 180, 150, 0.15);
    transform: translateX(4px);
}

.anchor-id,
.ltm-id,
.stm-id,
.open-id,
.close-id {
    background: linear-gradient(135deg, rgba(100, 150, 255, 0.18), rgba(120, 180, 255, 0.12));
    color: #2c4a6d;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 11px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(100, 150, 255, 0.15);
}

.anchor-type,
.ltm-scene,
.stm-scene,
.entity-name,
.open-time,
.close-time {
    font-weight: 700;
    color: #3a4c5d;
    flex-shrink: 0;
    font-size: 12px;
}

.anchor-fact,
.ltm-fact,
.stm-fact,
.entity-status,
.open-content,
.close-content {
    flex: 1;
    color: #5a6c7d;
    line-height: 1.6;
    font-weight: 500;
}

.open-status {
    background: linear-gradient(135deg, rgba(255, 200, 100, 0.25), rgba(255, 220, 120, 0.15));
    color: #8b5a00;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(255, 200, 100, 0.2);
}

.ltm-time,
.stm-time {
    background: linear-gradient(135deg, rgba(120, 200, 150, 0.18), rgba(140, 220, 170, 0.12));
    color: #2d6a4f;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 11px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(120, 200, 150, 0.15);
}

.memory-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(220, 210, 190, 0.4), transparent);
    margin: 12px 0;
}

.action-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-item {
    background: linear-gradient(135deg, rgba(240, 255, 245, 0.8), rgba(245, 255, 248, 0.6));
    border: 1px solid rgba(180, 220, 180, 0.5);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 14px;
    color: #1e4d2b;
    line-height: 1.7;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.action-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #38ef7d, #11998e);
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-item:hover::before {
    transform: scaleY(1);
}

.action-item:hover {
    background: linear-gradient(135deg, rgba(230, 255, 235, 0.95), rgba(240, 255, 245, 0.9));
    border-color: rgba(120, 200, 120, 0.7);
    box-shadow: 0 6px 20px rgba(120, 200, 120, 0.25);
    transform: translateX(8px);
    color: #0d3d1f;
}

details {
    margin-bottom: 14px;
}

details &gt; summary {
    font-size: 15px;
    font-weight: 800;
    color: #1a2332;
    cursor: pointer;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(100, 150, 255, 0.12), rgba(120, 180, 255, 0.08));
    border-radius: 10px;
    border: 1px solid rgba(100, 150, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    position: relative;
    overflow: hidden;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(100, 150, 255, 0.1);
}

details &gt; summary::-webkit-details-marker {
    display: none;
}

details &gt; summary::before {
    content: '▶';
    font-size: 12px;
    color: #5a6c7d;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

details[open] &gt; summary::before {
    transform: rotate(90deg);
}

details &gt; summary::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, rgba(100, 150, 255, 0.8), rgba(120, 180, 255, 0.6));
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

details &gt; summary:hover::after {
    transform: scaleY(1);
}

details &gt; summary:hover {
    background: linear-gradient(135deg, rgba(100, 150, 255, 0.18), rgba(120, 180, 255, 0.12));
    border-color: rgba(100, 150, 255, 0.4);
    box-shadow: 0 4px 16px rgba(100, 150, 255, 0.2);
    transform: translateX(4px);
}

details[open] &gt; summary {
    background: linear-gradient(135deg, rgba(100, 150, 255, 0.2), rgba(120, 180, 255, 0.15));
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
}

details:has(.npc-container) &gt; summary {
    background: linear-gradient(135deg, rgba(150, 100, 255, 0.12), rgba(180, 120, 255, 0.08));
    border-color: rgba(150, 100, 255, 0.25);
}

details:has(.npc-container) &gt; summary::after {
    background: linear-gradient(180deg, rgba(150, 100, 255, 0.8), rgba(180, 120, 255, 0.6));
}

details:has(.env-panel) &gt; summary {
    background: linear-gradient(135deg, rgba(120, 200, 150, 0.12), rgba(140, 220, 170, 0.08));
    border-color: rgba(120, 200, 150, 0.25);
}

details:has(.env-panel) &gt; summary::after {
    background: linear-gradient(180deg, rgba(120, 200, 150, 0.8), rgba(140, 220, 170, 0.6));
}

details:has(.social-panel) &gt; summary {
    background: linear-gradient(135deg, rgba(255, 150, 100, 0.12), rgba(255, 180, 120, 0.08));
    border-color: rgba(255, 150, 100, 0.25);
}

details:has(.social-panel) &gt; summary::after {
    background: linear-gradient(180deg, rgba(255, 150, 100, 0.8), rgba(255, 180, 120, 0.6));
}

details:has(.memory-core) &gt; summary {
    background: linear-gradient(135deg, rgba(255, 200, 100, 0.12), rgba(255, 220, 120, 0.08));
    border-color: rgba(255, 200, 100, 0.25);
}

details:has(.memory-core) &gt; summary::after {
    background: linear-gradient(180deg, rgba(255, 200, 100, 0.8), rgba(255, 220, 120, 0.6));
}

details:has(.action-panel) &gt; summary {
    background: linear-gradient(135deg, rgba(120, 200, 120, 0.15), rgba(140, 220, 140, 0.1));
    border-color: rgba(120, 200, 120, 0.3);
}

details:has(.action-panel) &gt; summary::after {
    background: linear-gradient(180deg, rgba(120, 200, 120, 0.8), rgba(140, 220, 140, 0.6));
}

@media (max-width: 768px) {
    .situation-panel,
    .char-card,
    .npc-container,
    .env-panel,
    .social-panel,
    .memory-core,
    .action-panel {
        padding: 12px;
    }
    
    .info-grid,
    .finance-grid,
    .occult-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-bar {
        grid-template-columns: 75px 1fr 50px;
    }
    
    .spell-item,
    .artifact-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .npc-row {
        flex-wrap: wrap;
    }
    
    .char-name,
    .npc-name {
        font-size: 16px;
    }
    
    details &gt; summary {
        font-size: 14px;
        padding: 12px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .action-item,
    .fill,
    details &gt; summary,
    .grid-item,
    .finance-item,
    .relation-item,
    .social-item,
    .env-sense,
    .npc-card,
    .spell-item,
    .artifact-item,
    .anchor-item,
    .ltm-item,
    .stm-item,
    .entity-item,
    .open-item,
    .close-item {
        transition: none;
    }
    
    .fill::after {
        animation: none;
    }
}

@media (prefers-color-scheme: dark) {
    .situation-panel,
    .char-card,
    .npc-container,
    .env-panel,
    .social-panel,
    .memory-core,
    .action-panel {
        background: linear-gradient(135deg, rgba(30, 35, 45, 0.95), rgba(25, 30, 40, 0.95));
    }
    
    .char-name,
    .npc-name,
    .section-title,
    .section-header {
        color: #e8edf2;
    }
    
    .info-text,
    .val,
    .appearance-text p,
    .motivation,
    .sense-content,
    .collapsible-content {
        color: #b8c5d0;
    }
    
    details &gt; summary {
        background: linear-gradient(135deg, rgba(100, 150, 255, 0.2), rgba(120, 180, 255, 0.15));
        border-color: rgba(100, 150, 255, 0.35);
        color: #e8edf2;
    }
}