.compact-result-card { background: var(--surface); border-radius: var(--radius-md); padding: 0.75rem; border: 1px solid var(--border); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; position: relative; overflow: hidden; display: flex; flex-direction: column; font-size: 0.85rem; flex: 0 0 auto; width: calc((100% - 2.25rem) / 3); min-width: 200px; max-width: 300px; min-height: 120px; max-height: 200px; }
.compact-result-card:hover { background: var(--surface-3); transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.compact-result-card.expanded { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 90vw; max-width: 800px; height: 80vh; max-height: 600px; z-index: 1000; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); border: 2px solid var(--primary); overflow-y: auto; min-height: auto; max-height: none; animation: expandCard 0.3s cubic-bezier(0.4, 0, 0, 0.2, 1); background:#ffffff; }
.card-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #ffffff; z-index: 999; opacity: 0; animation: fadeInOverlay 0.3s ease-out forwards; }
@keyframes fadeInOverlay { to { opacity: 1; } }
.card-close-btn { position: absolute; top: 1rem; right: 1rem; background: var(--error); color: white; border: none; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem; transition: all 0.2s ease; z-index: 10; }
.card-close-btn:hover { background: #dc2626; transform: scale(1.1); }
.expand-indicator { position: absolute; bottom: 0.5rem; right: 0.5rem; background: var(--primary); color: white; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; opacity: 0.7; transition: all 0.2s ease; }
.compact-result-card:hover .expand-indicator { opacity: 1; transform: scale(1.1); }
.compact-result-card.expanded .expand-indicator { display: none; }
.expanded-card-content { color: var(--text-primary); background:#dddcf4; }
.expanded-card-content h2 { display: flex; align-items: center; gap: 0.5rem; border-bottom: 2px solid var(--primary-200); padding-bottom: 1rem; }
.expanded-card-content h3 { color: var(--primary); margin: 1.5rem 0 1rem 0; }

