* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #1a1a2e;
    color: #eee;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: #16213e;
    border-bottom: 1px solid #0f3460;
    flex-shrink: 0;
}

#title-section h1 { font-size: 18px; font-weight: 600; }
#title-section .subtitle { font-size: 12px; color: #8899aa; margin-left: 8px; }

#search-container { position: relative; }

#search-input {
    padding: 6px 12px;
    width: 280px;
    border: 1px solid #0f3460;
    background: #1a1a2e;
    color: #eee;
    font-size: 13px;
    border-radius: 4px;
    outline: none;
}
#search-input:focus { border-color: #3498db; }
#search-input::placeholder { color: #556677; }

#search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background: #16213e;
    border: 1px solid #0f3460;
    border-top: none;
    border-radius: 0 0 4px 4px;
    display: none;
    z-index: 20;
}

#search-suggestions .suggestion {
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
}
#search-suggestions .suggestion:hover { background: #0f3460; }
#search-suggestions .suggestion .cite-count { color: #556677; font-size: 11px; }

#main {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

#no-selection {
    text-align: center;
    padding: 40px 20px;
    color: #667788;
}

#no-selection p { font-size: 16px; margin-bottom: 20px; }

#suggested-figures {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 800px;
    margin: 0 auto;
}

.suggested-chip {
    padding: 6px 14px;
    background: #16213e;
    border: 1px solid #0f3460;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.suggested-chip:hover { border-color: #3498db; color: #eee; }

.hidden { display: none !important; }

#bio-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #0f3460;
}

#bio-header h2 { font-size: 24px; margin-bottom: 6px; }
#bio-meta { font-size: 13px; color: #8899aa; }
#bio-meta a { color: #3498db; text-decoration: none; }
#bio-meta a:hover { text-decoration: underline; }

#bio-content {
    display: flex;
    gap: 24px;
}

#bio-left { flex: 1; }
#bio-right { flex: 1; }

.bio-section {
    margin-bottom: 24px;
}

.bio-section h3 {
    font-size: 14px;
    color: #8899aa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.section-desc {
    font-size: 12px;
    color: #556677;
    margin-bottom: 8px;
}

/* Issue presence bars */
.issue-bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.issue-bar-label {
    width: 100px;
    font-size: 12px;
    color: #8899aa;
}

.issue-bar-track {
    flex: 1;
    height: 22px;
    background: #0f1a2e;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.issue-bar-fill {
    height: 100%;
    border-radius: 3px;
    display: flex;
    align-items: center;
    padding-left: 6px;
    font-size: 11px;
    color: #eee;
    min-width: 30px;
}

.issue-bar-citers {
    margin-left: 8px;
    font-size: 11px;
    color: #667788;
}

/* Cited-by and co-cited lists */
.person-row {
    display: flex;
    align-items: center;
    padding: 4px 0;
    cursor: pointer;
}
.person-row:hover { color: #3498db; }

.person-name {
    flex: 1;
    font-size: 13px;
}

.person-bar {
    width: 120px;
    height: 14px;
    background: #0f1a2e;
    border-radius: 2px;
    overflow: hidden;
    margin: 0 8px;
}

.person-bar-fill {
    height: 100%;
    border-radius: 2px;
}

.person-count {
    width: 30px;
    text-align: right;
    font-size: 12px;
    color: #667788;
}
