:host {
    display: flex;
    flex-direction: column;
    height: 100%;
}


.toolbar {
    display: flex;
    align-items: center;
    position: relative;
    gap: 0.75rem;
    height: 40px;
    padding-right: 0.5rem;
    border-radius: 8px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
    flex-shrink: 0;
    cursor: pointer;
}

.toolbar-btn {
    padding: 0.375rem 0.75rem;
    background: transparent;
    color: #4f46e5;
    border: 1px solid #4f46e5;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.toolbar-btn:hover {
    background: #eef2ff;
}

.back-btn {
    margin-left: 0.5rem;
}

.toolbar-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
    font-size: 1.25rem;
    color: #333;
}

.section-header {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1.25rem;
}

.spacer {
    flex: 1;
}

.error {
    font-size: 0.875rem;
    color: #dc2626;
    margin: 0 0 1rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #555;
    font-size: 0.9375rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.card-grid {
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    gap: 1rem;
    overflow-y: auto;
    flex: 1;
}

.goal-footer {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    height: 48px;
    background: #fff;
    border-top: 1px solid #ddd;
    flex-shrink: 0;
    margin-top: auto;
}