#helper-bakos {
    --color-primary-accent: #6d28d9; /* Muted Dark Purple */
    --color-secondary-accent: #c084fc; /* Muted Purple highlight */
    height: calc(100vh - 56px); /* Lock height to viewport minus navbar */
    overflow: hidden;
    box-sizing: border-box;
}

#helper-bakos .panel {
    max-width: 800px; /* Aligned with Panic Lab */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

#helper-bakos #words-container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
}

@media (max-width: 768px) {
    #helper-bakos {
        padding-top: 0;
        padding-bottom: 0;
    }
    #helper-bakos .panel {
        height: 100%;
        margin: 0 auto;
        border-radius: 0;
    }
}

/* Scoped word cards */
#helper-bakos .word-item {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    padding: 14px 16px;
    margin-bottom: 10px;
    background-color: var(--color-bg-surface);
    cursor: pointer;
    transition: border-color 0.15s ease;
}

#helper-bakos .word-item:hover {
    border-color: var(--color-border-hover);
}

#helper-bakos .word-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#helper-bakos .word-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: capitalize;
    color: var(--color-text-primary);
}

#helper-bakos .word-details {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--color-border);
    cursor: default;
}

#helper-bakos .word-pronunciation-badge {
    font-size: 0.7rem;
    font-weight: 600;
    background-color: var(--color-neutral-shaded);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

#helper-bakos .word-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

#helper-bakos .word-tag-badge {
    font-size: 0.7rem;
    font-weight: 600;
    background-color: #ebdcfc; /* Muted Purple-tinted background */
    color: #6d28d9; /* Muted Purple text */
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    border: 1px solid #d8b4fe; /* Purple-tinted border */
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

#helper-bakos .word-definition {
    font-size: 0.85rem;
    color: var(--color-text-primary);
    margin-bottom: 14px;
    line-height: 1.4;
}

#helper-bakos .word-actions {
    margin-bottom: 14px;
}

/* Scoped voting buttons */
#helper-bakos .word-votes-row {
    display: flex;
    gap: 12px;
    align-items: center;
    border-top: 1px solid var(--color-border);
    padding-top: 10px;
}

#helper-bakos .btn-icon {
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    min-width: 64px;
    height: auto;
    padding: 6px 8px;
    border-radius: var(--border-radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

#helper-bakos .btn-icon-text {
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1;
}

#helper-bakos .btn-icon:hover:not(:disabled) {
    color: var(--color-text-primary);
    border-color: var(--color-border-hover);
    background-color: var(--color-neutral-shaded);
}

/* User vote disabled state (once cast) */
#helper-bakos .btn-icon:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

#helper-bakos .btn-icon.active {
    color: var(--color-primary-accent);
    border-color: var(--color-primary-accent);
    background-color: var(--color-neutral-shaded);
}

/* Scoped history layouts */
#helper-bakos .history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#helper-bakos .history-item {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-primary);
    text-transform: capitalize;
}
