/* =============================================================================
   STYLE-DAIVAN.CSS - Đại Vận (Major Luck) Section Styles
   =============================================================================
   Contains: Rebalance Section, Root Details, Đại Vận Groups, 
             Xung Giải Hợp Logs, Case Study Logs
   
   LOAD ORDER: After core.css and style-nguyencuc.css
   ============================================================================= */

/* =============================================================================
   REBALANCE (TÁI TÍNH TOÁN) SECTION
   ============================================================================= */

.rebalance-section {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.08) 0%, rgba(33, 150, 243, 0.08) 100%);
    border: 2px solid rgba(156, 39, 176, 0.3);
    position: relative;
}

.rebalance-section.status-changed {
    border-color: rgba(255, 152, 0, 0.5);
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, rgba(244, 67, 54, 0.08) 100%);
}

.rebalance-section h5 {
    font-size: 1.1rem;
    color: var(--accent-gold);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.rebalance-dm {
    margin-bottom: 15px;
}

.dm-original {
    font-size: 0.85rem;
    color: #999;
    margin-top: 5px;
}

.status-change-badge {
    background: linear-gradient(135deg, #FF9800, #F44336);
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 8px;
    animation: pulse-warning 1.5s infinite;
}

@keyframes pulse-warning {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* =============================================================================
   ROOT DETAILS SECTION
   ============================================================================= */

.root-details-section {
    margin: 15px 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.root-details-section h6 {
    color: #90CAF9;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.root-table {
    width: 100%;
}

.root-table tr.state-bound td {
    background: rgba(76, 175, 80, 0.1);
}

.root-table tr.state-damaged td {
    background: rgba(255, 152, 0, 0.1);
}

.root-table tr.state-destroyed td,
.root-table tr.state-collapsed td {
    background: rgba(244, 67, 54, 0.1);
}

.root-table tr.state-open td {
    background: rgba(33, 150, 243, 0.1);
}

.rebalance-dungthan {
    margin-top: 15px;
}

.rebalance-dungthan h6 {
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.dung-than-reason {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 4px;
    color: #64B5F6;
    font-size: 0.9rem;
}

.status-warning-box {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.15), rgba(255, 152, 0, 0.1));
    border: 2px solid #FF5722;
    border-radius: 8px;
    text-align: center;
}

.status-warning-box strong {
    color: #FF5722;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

.status-warning-box p {
    color: #FFCCBC;
    margin-bottom: 5px;
}

/* =============================================================================
   ĐẠI VẬN GROUP STYLING
   ============================================================================= */

.group-mokho .group-header {
    background: rgba(121, 85, 72, 0.2);
    color: #A1887F;
}

.group-flow .group-header {
    background: rgba(33, 150, 243, 0.15);
    color: #64B5F6;
}

.group-rebalance .group-header {
    background: rgba(156, 39, 176, 0.15);
    color: #BA68C8;
}

/* Group styling for HÌNH */
.group-hinh .group-header {
    background: rgba(255, 165, 0, 0.15);
    color: #FFB74D;
}

/* =============================================================================
   XUNG GIẢI HỢP LOG STYLING
   ============================================================================= */

.log-xung_giai_hop_header {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.15), rgba(156, 39, 176, 0.15));
    border-left: 3px solid #E91E63;
    padding: 8px 12px;
    margin: 8px 0 4px 0;
    color: #F48FB1;
    font-weight: bold;
}

.log-xung_giai_hop_detail {
    color: #CE93D8;
    padding-left: 20px;
}

.log-xung_giai_hop_result {
    color: #81D4FA;
    padding-left: 20px;
    font-style: italic;
}

.log-tu_hinh_warning {
    color: #FFAB91;
    padding-left: 20px;
}

.log-cascade_damage {
    color: #FF8A65;
    background: rgba(255, 87, 34, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.log-earth_clash_amplify {
    background: linear-gradient(135deg, rgba(121, 85, 72, 0.2), rgba(161, 136, 127, 0.15));
    border-left: 3px solid #A1887F;
    padding: 8px 12px;
    margin: 8px 0 4px 0;
    color: #BCAAA4;
    font-weight: bold;
}

.log-earth_clash_detail {
    color: #A1887F;
    padding-left: 20px;
}

/* =============================================================================
   CASE STUDY NEW LOG STYLES
   ============================================================================= */

/* Bán Hình (Partial Punishment) */
.log-ban_hinh {
    background: linear-gradient(90deg, rgba(255, 165, 0, 0.15), transparent);
    border-left: 3px solid #FFA000;
    padding: 8px 12px;
    margin: 4px 0;
    color: #FFD54F;
    font-weight: 600;
}

.log-ban_hinh_detail {
    color: #FFB74D;
    padding-left: 20px;
}

/* Bán Tam Hợp (Half Harmony) */
.log-ban_tam_hop {
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.12), transparent);
    border-left: 3px solid #66BB6A;
    padding: 8px 12px;
    margin: 4px 0;
    color: #A5D6A7;
}

.log-ban_tam_hop_detail {
    color: #81C784;
    padding-left: 20px;
    font-style: italic;
}

/* Bán Tam Hợp Hóa (Half Harmony Transformed) */
.log-ban_tam_hop_hoa {
    background: linear-gradient(90deg, rgba(255, 100, 0, 0.2), transparent);
    border-left: 3px solid #FF6D00;
    padding: 8px 12px;
    margin: 4px 0;
    color: #FF8A65;
    font-weight: bold;
}

.log-ban_tam_hop_hoa_detail {
    color: #FFAB91;
    padding-left: 20px;
}

/* Tàng Can Killed (Hidden Stem Destroyed) */
.log-tang_can_killed {
    background: linear-gradient(90deg, rgba(200, 50, 50, 0.2), transparent);
    border-left: 3px solid #cc3333;
    padding: 8px 12px;
    margin: 4px 0;
    color: #EF5350;
    font-weight: bold;
}

.log-tang_can_killed_detail {
    color: #EF9A9A;
    padding-left: 20px;
}

/* Bound Lost Sinh (Can bound loses ability to generate) */
.log-bound_lost_sinh {
    background: linear-gradient(90deg, rgba(156, 39, 176, 0.12), transparent);
    border-left: 3px solid #AB47BC;
    padding: 8px 12px;
    margin: 4px 0;
    color: #CE93D8;
    font-style: italic;
}

/* =============================================================================
   ELEMENT STATUS BADGES
   ============================================================================= */

.status-cuc-vuong {
    color: #ff4444;
    font-weight: bold;
}

.status-vuong {
    color: #ff8800;
}

.status-trung-binh {
    color: #888;
}

.status-yeu {
    color: #4488ff;
}

/* Change indicators */
.change-positive {
    color: #22aa22;
}

.change-negative {
    color: #dd4444;
}

/* =============================================================================
   REFERENCE LOG STYLES (v2.2: Reference to Natal Chart formations)
   ============================================================================= */

/* Tam Hội Reference - Not recalculating, just referencing */
.log-tam_hoi_reference {
    background: linear-gradient(90deg, rgba(33, 150, 243, 0.08), transparent);
    border-left: 3px solid #42A5F5;
    padding: 6px 12px;
    margin: 4px 0;
    color: #64B5F6;
    font-style: italic;
}

/* Tam Hợp Reference */
.log-tam_hop_reference {
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.08), transparent);
    border-left: 3px solid #66BB6A;
    padding: 6px 12px;
    margin: 4px 0;
    color: #81C784;
    font-style: italic;
}

/* =============================================================================
   ĐẠI VẬN SELECTOR DROPDOWN
   ============================================================================= */

.dv-selector-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: rgba(33, 150, 243, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.dv-selector-container label {
    font-size: 0.95rem;
    color: #90CAF9;
    font-weight: 500;
    white-space: nowrap;
}

.dv-selector {
    flex: 1;
    max-width: 300px;
    padding: 8px 12px;
    font-size: 0.95rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dv-selector:hover {
    border-color: rgba(33, 150, 243, 0.5);
    background: rgba(33, 150, 243, 0.15);
}

.dv-selector:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.25);
}

.dv-selector option {
    background: #1e2a38;
    color: #fff;
    padding: 8px;
}

/* =============================================================================
   DIAGRAM TOGGLE CONTROL (v2.3: Show/Hide NC↔NC layer)
   ============================================================================= */

.dv-diagram-toggle {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: rgba(33, 150, 243, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(33, 150, 243, 0.15);
}

.dv-diagram-toggle .toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary, #aaa);
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.dv-diagram-toggle .toggle-label:hover {
    color: var(--text-primary, #fff);
}

.dv-diagram-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2196F3;
    cursor: pointer;
}

.dv-diagram-toggle .toggle-label span {
    font-weight: 500;
}

/* =============================================================================
   GIẢI HỢP (Broken Combination) LEGEND CHIP
   ============================================================================= */

.legend-chip.legend-giai-hop {
    background: linear-gradient(135deg, #00E676 0%, #00C853 100%);
    color: #1B5E20;
    font-weight: 600;
}

.legend-chip.legend-hop-broken {
    background: linear-gradient(135deg, #666 0%, #888 100%);
    color: #333;
    text-decoration: line-through;
    opacity: 0.7;
}

/* =============================================================================
   GIẢI HỢP LOG STYLING
   ============================================================================= */

.log-giai_hop {
    background: linear-gradient(90deg, rgba(0, 230, 118, 0.15), transparent);
    border-left: 3px solid #00E676;
    padding: 8px 12px;
    margin: 4px 0;
    color: #69F0AE;
    font-weight: 600;
}

.log-giai_hop_cascade {
    color: #B2FF59;
    padding-left: 20px;
    font-style: italic;
}

.log-hop_partner_freed {
    background: linear-gradient(90deg, rgba(105, 240, 174, 0.1), transparent);
    color: #A7FFEB;
    padding: 6px 12px;
    margin: 2px 0;
    font-weight: 500;
}

/* =============================================================================
   BIẾN TÍNH (QUANTITY CHANGES QUALITY) STYLES
   ============================================================================= */
.log-bien_tinh {
    background: linear-gradient(90deg, rgba(255, 152, 0, 0.15), rgba(255, 193, 7, 0.05));
    border-left: 4px solid #FF9800;
    padding: 10px 14px;
    margin: 8px 0;
    color: #FFCC80;
    border-radius: 0 4px 4px 0;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.log-bien_tinh:hover {
    background: linear-gradient(90deg, rgba(255, 152, 0, 0.25), rgba(255, 193, 7, 0.15));
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.1);
}

.log-bien_tinh strong {
    color: #FFD54F;
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
}

/* =============================================================================
   ỨNG KỲ ACTIVATION TIMELINE STYLES
   Mobile-First Design for 10-Year Prediction Display
   ============================================================================= */

.activation-timeline-container {
    background: linear-gradient(135deg, rgba(103, 58, 183, 0.08) 0%, rgba(33, 150, 243, 0.08) 100%);
    border: 1px solid rgba(103, 58, 183, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}

/* Scenario Header */
.scenario-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.scenario-icon {
    font-size: 1.5rem;
    animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50% { opacity: 0.8; filter: brightness(1.3); }
}

.scenario-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #CE93D8;
    flex: 1;
}

.scenario-env {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.scenario-env-war {
    background: linear-gradient(135deg, #EF5350, #C62828);
    color: #fff;
}

.scenario-env-peace {
    background: linear-gradient(135deg, #66BB6A, #2E7D32);
    color: #fff;
}

.scenario-env-opportunity {
    background: linear-gradient(135deg, #FFD54F, #FF8F00);
    color: #1A237E;
}

.scenario-desc {
    color: #B39DDB;
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Timeline Grid - Mobile First */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

@media (max-width: 768px) {
    .timeline-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 400px) {
    .timeline-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Individual Year Cards */
.timeline-year-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.timeline-year-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Year Type Variations */
.timeline-danger {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), rgba(183, 28, 28, 0.15));
    border-color: #EF5350;
}

.timeline-danger:hover {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.35), rgba(183, 28, 28, 0.25));
}

.timeline-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.15));
    border-color: #FFC107;
}

.timeline-safe {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(56, 142, 60, 0.08));
    border-color: rgba(76, 175, 80, 0.3);
}

.timeline-opportunity {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(25, 118, 210, 0.15));
    border-color: #2196F3;
}

/* Year Card Elements */
.year-icon {
    font-size: 1.2rem;
}

.year-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.year-number {
    font-size: 0.75rem;
    color: #90CAF9;
}

.year-element {
    font-size: 0.7rem;
    color: #B39DDB;
}

.year-triggers {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-top: 4px;
}

.trigger-badge {
    font-size: 0.6rem;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    color: #FFD54F;
    white-space: nowrap;
}

/* Danger Summary Section */
.danger-summary {
    margin-top: 16px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1), rgba(183, 28, 28, 0.08));
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 8px;
}

.summary-title {
    color: #EF5350;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.summary-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.danger-year-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border-left: 3px solid #EF5350;
}

@media (min-width: 600px) {
    .danger-year-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.dy-name {
    font-weight: 600;
    color: #FFCDD2;
    font-size: 0.9rem;
}

.dy-warning {
    color: #EF9A9A;
    font-size: 0.8rem;
}

/* Empty State */
.activation-empty {
    text-align: center;
    padding: 20px;
    color: #9E9E9E;
    font-style: italic;
}

/* Opportunity Year Badge */
.timeline-opportunity .year-name {
    color: #64B5F6;
}

.timeline-opportunity .trigger-badge {
    color: #64B5F6;
    background: rgba(33, 150, 243, 0.2);
}

/* =============================================================================
   DYNAMIC INTERACTIONS SECTION (Injection Pipeline v4.0)
   Mobile-First Design for Injection Pipeline Display
   ============================================================================= */

/* Group Header Styling */
.group-dynamic .group-header {
    background: linear-gradient(135deg, rgba(103, 58, 183, 0.2), rgba(30, 136, 229, 0.2));
    color: #B39DDB;
    font-weight: 600;
}

/* Dynamic Content Container */
.dynamic-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
}

/* Dynamic Card - Base Styles (Mobile First) */
.dynamic-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 3px solid #7C4DFF;
    transition: all 0.3s ease;
    animation: fadeSlideIn 0.4s ease-out;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dynamic-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

/* Card Icon */
.dynamic-card .card-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

/* Card Body */
.dynamic-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dynamic-card .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #E1BEE7;
}

/* Upper Level Card */
.upper-level-card {
    border-left-color: #AB47BC;
}

.upper-level-card .card-value {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.power-badge {
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: fit-content;
}

.power-boost {
    background: linear-gradient(135deg, #66BB6A, #43A047);
    color: white;
}

.power-boost .power-badge {
    background: rgba(255, 255, 255, 0.2);
}

.power-reduced {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2), rgba(244, 67, 54, 0.1));
}

.power-reduced .power-badge {
    background: #FF9800;
    color: #1A1A1A;
}

.power-normal .power-badge {
    background: rgba(144, 164, 174, 0.3);
    color: #B0BEC5;
}

.upper-level-card .reason {
    color: #CE93D8;
    font-size: 0.85rem;
}

/* Grave Card */
.grave-card {
    border-left-color: #795548;
}

.grave-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.grave-item {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.grave-cat {
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.15), transparent);
    color: #A5D6A7;
    border-left: 3px solid #4CAF50;
}

.grave-hung {
    background: linear-gradient(90deg, rgba(244, 67, 54, 0.15), transparent);
    color: #EF9A9A;
    border-left: 3px solid #F44336;
}

.grave-neutral {
    background: linear-gradient(90deg, rgba(158, 158, 158, 0.15), transparent);
    color: #BDBDBD;
    border-left: 3px solid #9E9E9E;
}

/* Conflict Card */
.conflict-card {
    border-left-color: #FF5722;
}

.conflict-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.conflict-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.conflict-hung {
    background: linear-gradient(90deg, rgba(244, 67, 54, 0.12), transparent);
}

.conflict-cat {
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.12), transparent);
}

.conflict-icon {
    font-size: 1rem;
    min-width: 24px;
}

.conflict-text {
    flex: 1;
    color: #E0E0E0;
}

.conflict-score {
    font-weight: 600;
    font-size: 0.85rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
}

.conflict-hung .conflict-score {
    color: #EF5350;
}

.conflict-cat .conflict-score {
    color: #66BB6A;
}

/* Dynamic Summary */
.dynamic-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(103, 58, 183, 0.08));
    border-radius: 8px;
    border: 1px solid rgba(103, 58, 183, 0.2);
    margin-top: 8px;
}

.summary-label {
    font-weight: 600;
    color: #90CAF9;
    white-space: nowrap;
}

.summary-text {
    color: #E1BEE7;
    flex: 1;
    line-height: 1.4;
}

/* Log Types for Dynamic Interactions */
.log-dynamic_header {
    background: linear-gradient(90deg, rgba(103, 58, 183, 0.2), transparent);
    border-left: 3px solid #7C4DFF;
    padding: 10px 14px;
    margin: 8px 0;
    color: #B39DDB;
    font-weight: bold;
}

.log-dynamic_summary {
    color: #CE93D8;
    padding-left: 16px;
    font-weight: 500;
}

.log-grave_cat {
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.1), transparent);
    color: #A5D6A7;
    padding: 6px 12px;
    margin: 2px 0;
    border-radius: 4px;
}

.log-grave_hung {
    background: linear-gradient(90deg, rgba(244, 67, 54, 0.1), transparent);
    color: #EF9A9A;
    padding: 6px 12px;
    margin: 2px 0;
    border-radius: 4px;
}

.log-tt_conflict_cat {
    color: #A5D6A7;
    padding-left: 16px;
}

.log-tt_conflict_hung {
    color: #FFAB91;
    padding-left: 16px;
}

/* =============================================================================
   MOBILE RESPONSIVE - Dynamic Interactions
   ============================================================================= */

@media (max-width: 480px) {
    .dynamic-content {
        padding: 8px;
        gap: 10px;
    }

    .dynamic-card {
        flex-direction: column;
        padding: 10px;
        align-items: flex-start;
    }

    .dynamic-card .card-icon {
        font-size: 1.3rem;
        min-width: 36px;
        min-height: 36px;
    }

    .dynamic-card .card-title {
        font-size: 0.9rem;
    }

    .upper-level-card .card-value {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .power-badge {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .conflict-item {
        flex-wrap: wrap;
        padding: 6px 10px;
    }

    .conflict-text {
        font-size: 0.85rem;
    }

    .conflict-score {
        font-size: 0.8rem;
    }

    .dynamic-summary {
        flex-direction: column;
        padding: 10px;
    }

    .summary-label {
        font-size: 0.9rem;
    }

    .summary-text {
        font-size: 0.85rem;
    }
}

/* Touch target enforcement for mobile */
@media (hover: none) and (pointer: coarse) {
    .dynamic-card {
        min-height: 48px;
    }
    
    .conflict-item {
        min-height: 44px;
    }
    
    .grave-item {
        min-height: 44px;
    }
}